package com.baolai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@ApiModel("入库出库记录")
@TableName("goods_record")
public class GoodsRecord extends Model<GoodsRecord> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("16位随机Id")
    @TableId(type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("入库/出库")
    private String type;

    @ApiModelProperty("备件编码")
    private String goodsId;

    @ApiModelProperty("备件位置")
    private String site;

    @ApiModelProperty("入库或出库数量")
    private Integer number;

    @ApiModelProperty("申请人工号")
    private String account;

    @ApiModelProperty("申请人姓名")
    private String name;

    @ApiModelProperty("记录日期")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private String recordDate;
}
